{*
 *
 * Copyright (c) 2004-2005 OIC Group, Inc.
 *
 * This file is part of Exponent
 *
 * Exponent is free software; you can redistribute
 * it and/or modify it under the terms of the GNU
 * General Public License as published by the Free
 * Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * Exponent is distributed in the hope that it
 * will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE.  See the GNU General Public License
 * for more details.
 *
 * You should have received a copy of the GNU
 * General Public License along with Exponent; if
 * not, write to:
 *
 * Free Software Foundation, Inc.,
 * 59 Temple Place,
 * Suite 330,
 * Boston, MA 02111-1307  USA
 *
 * $Id: _viewlisting.tpl,v 1.3 2005/02/19 16:53:36 filetreefrog Exp $
 *}
<script type="text/javascript" language="javascript" src="{$smarty.const.THEME_RELATIVE}lytebox.js"></script>
<div class="listingmodule viewlisting">
{permissions level=$smarty.const.UILEVEL_PERMISSIONS}
					{if $permissions.administrate == 1}
						<br>
						<a class="" href="index.php?module=musicsmodule&action=edit_musics&album_id={$listing->id}"  >Add new music</a>
				{/if}
			{/permissions}
	<h1>{$listing->name}</h1>
	<div class="bodycopy">
	<table>
	<tr>
	<td valign=middle  align=center width=100>
		<a {if $listing->picpath != ""} href='{$listing->picpath}' rel="lytebox" {/if} >
				<img class="listingimage cont11" src={if $listing->picpath != ""} "{$smarty.const.PATH_RELATIVE}phpThumb.php?src={$listing->picpath}&w=100&h=120"  {else} "{$smarty.const.PATH_RELATIVE}phpThumb.php?src={$smarty.const.THEME_RELATIVE}images/album.jpg&w=100&h=120" {/if} border=0/>
				</a>
		<div  style=" border: 0;" ><br><a href="{link action=play_album module=musicsmodule id=$listing->id}" {if $smarty.const.LANG == $smarty.const.LANG_ENGLISH} alt="Listen this album" title="Listen this album"{else} alt="Nghe toàn bộ album này" title="Nghe toàn bộ album này" {/if}><img src="{$smarty.const.THEME_RELATIVE}images/listen_album.png" border=0 ></a></div>
	</td>
	<td>
		&nbsp;<p>{$listing->body}</p>
		
	</td></tr>
	<tr><td colspan=2>
	{assign var=musics value=$listing->musics}
					{include file=`$smarty.const.BASE`modules/musicsmodule/views/_list_music_detail.tpl}</td></tr>
		</table>
	{permissions level=$smarty.const.UILEVEL_PERMISSIONS}
					{if $permissions.administrate == 1}
						<br>
						<a class="" href="index.php?module=musicsmodule&action=edit_musics&album_id={$listing->id}"  >Add new music</a>
				{/if}
			{/permissions}
	</div>

<!-- page split for tacgia module -->
{if $page_count > 1 }
<div align=center style="padding-top: 30px;">
<font style="font-weight: bold; font-size: 12px; color: ">Trang&nbsp;&nbsp;</font>
{foreach from=$pages item=page key=page_key}
{if $page_key == $cur_page}
{$page}&nbsp;
{else}
<a href="{link action=view_listing page=$page_key id=$listing->id}">{$page}</a>&nbsp;
{/if}
{/foreach}
</div>
{/if}

	
</div>
